<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<head>
<title>Web-based Archives of Estonian and Kindred Languages</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="Keywords" content="archive, estonian, kindred" />
<meta http-equiv="Content-Language" content="en" />
<meta name="language" content="english" />
<meta name="author" content="Rauno Moisto, Hannes Tamme, Mait Sarv, Kristjan Sarv, Allar Säks" />
<link rel="stylesheet" type="text/css" title="Brown" href="kujundus/style_brown.css" />
</head>
<body>
<div id="header">
  <div id="header_inner" class="fixed">
    <div id="logo">
      <h1><span>murdekorpuse lindiarhiiv ja haldussüsteem</span></h1>
    </div>
    <div id="menu">
      <ul>
<?php
$index_active = ""; //nagu stx mõttetud read aga Hannsele on vaja error reportingut ... et defineerimata muutuja peale viga teataks
$otsi_active = "";
$lisa_active = "";
$haldus_actiive = "";
$failinimi = array_reverse(explode("/", $_SERVER["PHP_SELF"]));
$failinimi = rtrim($failinimi[0], ".php")."_active";
$$failinimi = " class=\"active\"";
?>
        <li><a href="index.php"<?=$index_active?>>Avaleht</a></li>
<?php if (isset($_SESSION["kindred"])) {?>
        <li><a href="otsi.php"<?=$otsi_active?>>Otsi</a></li>
        <li><a href="lisa.php"<?=$lisa_active?>>Lisa</a></li>
        <li><a href="haldus.php"<?=$haldus_active?>>Admin</a></li>
        <li><a href="logout.php">Logi välja</a></li>
<?php }?>
      </ul>
    </div>
  </div>
</div>
<div id="main">
  <div id="main_inner" class="fixed">
    <div id="primaryContent_2columns">
      <div id="columnA_2columns">
        <h3><?php if (isset($pealkiri1)) { echo $pealkiri1; } else { echo "Pealkiri"; }?></h3>
        <p> 
        <?php
            if (isset($viga)) {
                echo "<center><img src='kujundus/pildid/viga.png'><br />$viga</center>";
            }
            elseif (isset($teade)) {
                echo "<center><img src='kujundus/pildid/teade.png'><br />$teade</center>";
            }
            echo $sisu;
            ?> 
        </p>
        <br class="clear" />
      </div>
    </div>
    <div id="secondaryContent_2columns">
      <div id="columnC_2columns">
        <h4><span>teine</span> menüü?</h4>
        <ul class="links">
          <li class="first"> <a href="#">link</a></li>
        </ul>
      </div>
    </div>
    <br class="clear" />
  </div>
</div>
<div id="footer" class="fixed"> 2011 </div>
</body>
</html>
